package com.ruoyi.service.service.impl;

import com.ruoyi.service.domain.ServiceOrdernurse;
import com.ruoyi.service.mapper.ServiceOrdernurseMapper;
import com.ruoyi.service.service.IServiceOrdernurseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单护士对应Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-26
 */
@Service
public class ServiceOrdernurseServiceImpl implements IServiceOrdernurseService 
{
    @Autowired
    private ServiceOrdernurseMapper serviceOrdernurseMapper;

    /**
     * 查询订单护士对应
     * 
     * @param ordernurseId 订单护士对应主键
     * @return 订单护士对应
     */
    @Override
    public ServiceOrdernurse selectServiceOrdernurseByOrdernurseId(Long ordernurseId)
    {
        return serviceOrdernurseMapper.selectServiceOrdernurseByOrdernurseId(ordernurseId);
    }

    @Override
    public List<ServiceOrdernurse> selectByOrderId(Long orderId)
    {
        return serviceOrdernurseMapper.selectByOrderId(orderId);
    }

    /**
     * 查询订单护士对应列表
     * 
     * @param serviceOrdernurse 订单护士对应
     * @return 订单护士对应
     */
    @Override
    public List<ServiceOrdernurse> selectServiceOrdernurseList(ServiceOrdernurse serviceOrdernurse)
    {
        return serviceOrdernurseMapper.selectServiceOrdernurseList(serviceOrdernurse);
    }

    /**
     * 新增订单护士对应
     * 
     * @param serviceOrdernurse 订单护士对应
     * @return 结果
     */
    @Override
    public int insertServiceOrdernurse(ServiceOrdernurse serviceOrdernurse)
    {
        return serviceOrdernurseMapper.insertServiceOrdernurse(serviceOrdernurse);
    }

    /**
     * 修改订单护士对应
     * 
     * @param serviceOrdernurse 订单护士对应
     * @return 结果
     */
    @Override
    public int updateServiceOrdernurse(ServiceOrdernurse serviceOrdernurse)
    {
        return serviceOrdernurseMapper.updateServiceOrdernurse(serviceOrdernurse);
    }

    /**
     * 批量删除订单护士对应
     * 
     * @param ordernurseIds 需要删除的订单护士对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrdernurseByOrdernurseIds(Long[] ordernurseIds)
    {
        return serviceOrdernurseMapper.deleteServiceOrdernurseByOrdernurseIds(ordernurseIds);
    }

    /**
     * 删除订单护士对应信息
     * 
     * @param ordernurseId 订单护士对应主键
     * @return 结果
     */
    @Override
    public int deleteServiceOrdernurseByOrdernurseId(Long ordernurseId)
    {
        return serviceOrdernurseMapper.deleteServiceOrdernurseByOrdernurseId(ordernurseId);
    }
}
